package com.zengguang.testkaoshi.services.impl;

import com.zengguang.testkaoshi.dao.QuestionstypeDao;
import com.zengguang.testkaoshi.pojo.Questionstype;
import com.zengguang.testkaoshi.services.IQuestionstypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class QuestionstypeService implements IQuestionstypeService {
    @Autowired
    private QuestionstypeDao questionstypeDao;
    @Override
    public List<Questionstype> selectAllQuestiontype() {
        List<Questionstype> list=questionstypeDao.selectAllQuestiontype();
        return list;
    }

    @Override
    public int insertQuestionType(Questionstype questionstype) {
        int returnInt=0;
        int addQuestionInt=questionstypeDao.insertQuestionType(questionstype);
        returnInt=addQuestionInt;
        return returnInt;
    }
}
